<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset="utf-8">
<title>咪咕注册统计列表</title>
<@fm.header />
<script>
function doSearch(){    
    $('#tt').datagrid('load', {    
        startTime: $('#startTime').datetimebox('getValue'),
        endTime: $('#endTime').datetimebox('getValue')
    });
}

function formatRegisterConversion(value,row,index){
	return value + "%";
}

</script>
</head>
<body class="cmp-list-body">
<div id="tb" style="padding:3px">
    <span>时间:</span>
    <input type="text" class="easyui-datebox" id="startTime" />至
    <input type="text" class="easyui-datebox" id="endTime" />
    <a href="#" class="easyui-linkbutton" iconCls="icon-search" plain="true" onclick="doSearch();">查询</a> 
    
</div>
<table id="tt" class="easyui-datagrid" title="咪咕注册统计列表" iconCls="icon-save" 
	url="/migu/register/listJson" toolbar="#tb" rownumbers="true" idField="id"
	singleSelect="true" pagination="true" fitColumns="true" pageSize="15" pageList="[15,30,60,80,100]"> 
    <thead>
        <tr>
        	<th align="center" width="10%" field="time">日期</th>
        	<th align="center" width="10%" field="captchaSuccessNum">验证码成功数</th>
            <th align="center" width="10%" field="captchaFailNum">验证码失败数</th>
            <th align="center" width="10%" field="registerSuccessNum">注册成功数</th>
            <th align="center" width="10%" field="registerFailnum">注册失败数</th>
        	<th align="center" width="10%" field="registerConversion" formatter="formatRegisterConversion">转化率</th>
        </tr>
    </thead>   
</table>
</body>
</html>